#include <iostream>
using namespace std;
int n, k;
int main(){
	cin >> n >> k;
	int x = n * 0.1;
    if (n % 10 != 0) x++;
	if (x >= k) cout << "Gold Medal" << endl;
	else if (3*x >= k) cout << "Silver Medal" << endl;
    else if (6*x >= k) cout << "Bronze Medal" << endl;
    else cout << "Da Tie" << endl;

    return 0;
}


